import React, { Component, Suspense } from "react";
import './App.css';
import { HashRouter as Router } from "react-router-dom";
import { Routes } from "src/router";
import allRouters from "src/data/allRouters";
import "@ant-design/compatible/assets/index.css";

class App extends Component {
	render() {
		return (
			<Router>
				{/* <AuthRouter> */}
					<div className="app">
						<Suspense fallback={<div>Loading...</div>} >
						<Routes routes={allRouters} />
						</Suspense>
					</div>
				{/* </AuthRouter> */}
			</Router>
		);
	}
}

export default App;
